import i18n from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'

export class MetaPlatformGetChartSeriesDataVo {
  @ApiProperty({ description: 'name' })
  name: string

  @ApiProperty({ description: 'value' })
  value?: number
}

export class MetaPlatformGetChartSeriesVo {
  [prop: string]: any

  @ApiProperty({ description: i18n.t('app-meta.vo.meta-platform-get-chart-data.3069342-0') })
  name?: string

  @ApiProperty({ description: i18n.t('app-meta.vo.meta-platform-get-chart-data.3069342-1') })
  data: MetaPlatformGetChartSeriesDataVo[]
}

export class MetaPlatformGetChartDataVo {
  @ApiProperty({ description: i18n.t('app-meta.vo.meta-platform-get-chart-data.3069342-2') })
  legendData?: string[]

  @ApiProperty({ description: i18n.t('app-meta.vo.meta-platform-get-chart-data.3069342-3') })
  xAxisData?: string[]

  @ApiProperty({
    description: i18n.t('app-meta.vo.meta-platform-get-chart-data.3069342-4'),
  })
  series: MetaPlatformGetChartSeriesVo[]

  @ApiProperty({ description: i18n.t('app-meta.vo.meta-platform-get-chart-data.3069342-5') })
  dataHash?: string
}
